import App from './App'
import Vue from 'vue'
import { setApiPrefix } from './api/base'
import { API_PREFIX, initConfig} from './utils/const'
import Store from './store/index.js'
import {getSettings} from '@/api/config.js'
import { checkUpdate } from './services/miniApi'

setApiPrefix(API_PREFIX)

uni.$showMsg =function(title="数据请求失败！",duration =1500) {
	uni.showToast({
		title,
		duration,
		icon:"none"
	})
}

Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
	...App,
	store: Store
})
app.$mount()

checkUpdate()

